Skip to content

Add support for epoch of observation #325#357

Merged
daleroberts merged 1 commit into1.4.0from
dr-325
Apr 21, 2026
Merged

Add support for epoch of observation #325#357
daleroberts merged 1 commit into1.4.0from
dr-325

Conversation

@daleroberts
Copy link
Copy Markdown
Member

Introduces a new Epoch of Observation concept, distinct from the existing reference-frame epoch, throughout the data model and binary formats. This means we have:

  • epoch: Epoch of Reference Frame (mutable by dnareftran).
  • observation_epoch: Timestamp of when the measurement/station was observed. Immutable under reftran.

One thing to note is that this means the binary file format needs to change and is not compatible anymore, which is not an issue since the binary format should only be used as an intermediary stage after dnaimport has ingested the XML files. The binary file format has been bumped from 1.1 to 1.2 and readers fall back observation_epoch = epoch for legacy files.

A new --observation-epoch option (accepts dd.mm.yyyy, year-only, or literal today) has been added.

@daleroberts daleroberts requested a review from umma-zannat April 21, 2026 01:33
@daleroberts daleroberts merged commit ab882b7 into 1.4.0 Apr 21, 2026
16 checks passed
@daleroberts daleroberts deleted the dr-325 branch April 21, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant